<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../../resource/js/jquery-3.1.1.min.js"></script>
    <script>
        $(function () {
            $("ul li").click(function () {
                    $(".word").append($(this).clone());
            });
        });
        $(function () {
            $("#one").click(function () {
                var jQuery = $(".word").text();alert(jQuery)
                alert(jQuery);
            });
        });

    </script>
    <style>
        #one{
            width:100px;
            height: 300px;
        }
    </style>
</head>
<body>
<ul>
    <li>12</li>
    <li>23</li>
    <li>34</li>
    <li>45</li>
</ul>
<p class="word">

</p>
<button id="one">

</button>
</body>
</html>